package sumoTween.demo.swing.scroll;

import java.awt.Color;
import java.awt.Graphics;

public class Box {
	
	int posx=0;
	int posy=0;
	
	int width=10;
	int height=10;

	Color col;
	
	public Box()
	{
		posx=(int)(Math.random()*640d*4d)-640*2;
		posy=(int)(Math.random()*480d*4d)-480*2;
		
		width=(int)(Math.random()*50)+25;
		height=(int)(Math.random()*50)+25;
		
		col=new Color(
				(int)(Math.random()*255),
				(int)(Math.random()*255),
				(int)(Math.random()*255)
				);
	}

	public void draw(Graphics g)
	{
		g.setColor(col);
		g.fillRect(posx, posy, width, height);
	}
	
}
